$OpenBSD: patch-storage_mozStorageConnection_cpp,v 1.9 2017/06/14 05:30:05 landry Exp $

set secure_delete PRAGMA on by default, instead of using internal sqlite copy
https://bugzilla.mozilla.org/show_bug.cgi?id=546162

--- storage/mozStorageConnection.cpp.orig	Tue Apr 18 14:22:47 2017
+++ storage/mozStorageConnection.cpp	Fri Apr 21 14:15:52 2017
@@ -782,6 +782,13 @@ Connection::initializeInternal()
     return convertResultCode(srv);
   }
 
+  srv = ::sqlite3_exec(mDBConn, "PRAGMA secure_delete = ON", NULL, NULL, NULL);
+  if (srv != SQLITE_OK) {
+    ::sqlite3_close(mDBConn);
+    mDBConn = nullptr;
+    return convertResultCode(srv);
+  }
+
   // Set the synchronous PRAGMA, according to the preference.
   switch (Service::getSynchronousPref()) {
     case 2:
